#ifndef __ERROR_CODE_DESCRIPTION__
#define __ERROR_CODE_DESCRIPTION__


#include <string>
#include <QChar>
#include <QMetaType>
#include <QString>
#include "sconst.h"
#include "module.h"

class Errorcode
{
  public:
    Errorcode(const Errorcode&);
    Errorcode(Module module = Module(), long eid = 0, std::string sd = "", std::string ld = "");
    virtual ~Errorcode();


    void setModule(Module);
    Module  getModule();

    void setShortDescription(std::string);
    std::string  getShortDescription();

    void setErrorID(long);
    long  getErrorID();

    void setLongDescription(std::string);
    std::string  getLongDescription();

    bool operator == (const Errorcode&);

  protected:
    Module      module;
    long        error_id;
    std::string sdescription;
    std::string ldescription;

};

Q_DECLARE_METATYPE(Errorcode)

#endif
